/*
 * Copyright (C) 2010-2010 MaoJian Wu
 *
 * Author:
 *	MaoJian Wu
 *
 * Source:
 *	
 *
 * This file is a part of zfspear library.
 *
 *
 */

#ifndef ROSTER_ITEM_H
#define ROSTER_ITEM_H
#include "xmpp_element.h"
#include "jid.h"
#include <QList>

class RosterItem : public XmppElement
{
    Q_OBJECT
public:
    Q_INVOKABLE RosterItem();
    Jid  GetJid();
    void SetJid(Jid jid);
    QString Name();
    void SetName(const QString& name);
    QString Subscription();
    void SetSubscription(const QString& subscription);
    QList<XmppElement*> GetGroups();
    void AddGroup(const QString& groupname);
    bool HasGroup(const QString& groupname);
    void RemoveGroup(const QString& groupname);
};

#endif // ROSTER_ITEM_H
